home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / library / cd2mc.lha / CD2MC / CD2MC.uk < prev    next >
Text File  |  1996-01-19  |  13KB  |  266 lines

  1. Why this program? The answer is very simple: I never found a program able to
  2. let you backup your CDs onto tapes for personal use. This one not only does
  3. this with a lot of feautres, but it prints out the tape cover too!
  4. In a few words, CD2MC provides the "Edit" function (and something more, I
  5. guess...) of the home stereos, so I think it could help a lot of people who,
  6. like me, have a poor stereo not provided with the Edit function; in any
  7. case, I suggest the "luck fellas" to just have a look at CD2MC, it could
  8. serve them well too...
  9.  
  10. The use of CD2MC is easy: in fact, it needs no parameters, just launch it
  11. from the CLI or the Workbench; it was programmed under Kickstart 1.3 so it
  12. should be compatible with all the available types of Amiga, and with
  13. whatsoever version of Kickstart. The only attention arises from the fact
  14. that in the directory DEVS: there must be the "printer.device" driver with,
  15. in the directory "printers/", the filename of the own's printer, while in
  16. the FONTS: directory there must be the fonts Helvetica 9, Garnet 16, Ruby
  17. 15, Diamond 12, Times 13,available as default on the disks of the Amiga OS.
  18. The program needs at maximum 354 RAM Kb, but anyway there is a memory check,
  19. and for instance if there isn't the possibility of activating a requester,
  20. an alert will be displayed. But let's see now in detail the possibilities
  21. offered by this program:
  22.  
  23. ============================================================================
  24.  
  25. *FIRST PART - INSERTING DATA*
  26. -----------------------------
  27.  
  28. *STRING GADGETS*
  29. ================
  30.  
  31. These gadgets allow the inserting both of the song title and the length of
  32. the songs and of the tape, the title of the album and the name of the
  33. singers. It is possible to insert up to 42 different songs, so to permit the
  34. backup of double-CD's or of CD particularly full of songs, and also allows
  35. the creation of multitapes (see after). Each time you press the carriage
  36. return key, the cursors will automatically move on the next string gadget.
  37. It is also possible to perform this operation by hand, although if not
  38. convenient. Just bear in your mind that empty spaces between the songs
  39. aren't allowed; in other words, as soon as there is an empty space, all what
  40. follows will be erased. On the left you can see the number of the song
  41. associated with its name, so that you'll be able to program your stereo with
  42. the right numbers. Would you want to skip some songs, it is possible to make
  43. the song name precede by a two digits sequence followed by a ".": for
  44. instance, if I want the songs number 1,3,4,5 I will regularly write the
  45. title of the first song, while in the next gadget I will write "03.Song
  46. number 3". Pressing the carriage return, on the left you'll see the number 3
  47. instead of 2, and the string gadget will only contain the song name. From
  48. that point on, the count will go on regularly (i.e. 4,5,6 a.s.o.) till new
  49. order. As it regards timings inserting, times over 30 minutes aren't
  50. allowed, nor void times or empty gadgets. The separation sign between
  51. minutes and seconds is a ":", but while writing it is possible to insert
  52. whatsoever character you wish, as for example "," or ".", useful the latter
  53. in case you use the numeric pad. If a song length is lesser than one minute,
  54. you can just write the number of secs. A "00:" will be automatically added.
  55. Remember that for a perfect optimization you may need to check the song
  56. length by reading it directly from the CD, and not by taking for granted
  57. what is written on the cover, as often those data differ from reality. In
  58. case you write impossible values ("12:88") or alphabetic chars ("aa:bb") the
  59. program will signal the mistake. The tape-length gadget is a three-digits
  60. gadget in oder to also allow the (obsolete) use of 100 or 120 mins long
  61. tapes. The length is referred to both the sides of a tape, i.e. to what one
  62. can read on the tape itself. To end, the gadgets about author(s) and
  63. title(s) represent what will be shown in the cover, once printed. It is also
  64. possible to insert just one author and two titles (for very long album
  65. names) or two authors and just one title (for example, in case you backup
  66. classical music).
  67.  
  68. *OPTIONS GADGET*
  69. ================
  70.  
  71. The options gadget, put near the tape lentgh one, are "A","B","3","M","C"
  72. and "+".
  73.  
  74. -"A" Gadget: this one says that only side A is available; this function may
  75. reveal itself useful in case you already have an engaged side.
  76.  
  77. -"B" Gadget: as for the "A" one, but this time the free side is the B one.
  78.  
  79. -"3" Gadget: I've put this option as many CD readers have as an option the
  80. possibility of adding 3 secs at the end of each song. Thus, the optimization
  81. will also consider this factor. It is mixable with "A" and "B".
  82.  
  83. -"M" Gadget: This one is useful to create more than one cassette, each one
  84. though all of the same length. Once optimized, the whole list of the
  85. cassettes will be shown. This way, one may have 42 particulalry interesting
  86. songs and the wish of recording them on a certain numbers of, for instance,
  87. 60 minutes tapes. With this option, this is possible!
  88.  
  89. -"C" Gadget: this is a rather interesting function, as it allows to record
  90. the songs onto a tape of a length lesser than the one of the CD. Obviously,
  91. some songs will be erased, but only in as the lesser number as possible. It
  92. is mixable with "3", "A" and "B".
  93.  
  94. -"+" Gadget: this function lets you consider songs as linked together, so
  95. that the optimization doesn't split them. It is useful if you need to backup
  96. a classical music CD, where the singles acts of an entire opera cannot of
  97. course be splitted! Just bear in your mind that if I want to attach the
  98. number 1 to the 2, and 3 to 4 I'll put the "+" on the 1 and 3; should I put
  99. it also on the 2, I'd get numbers 1,2,3,4 linked altogether.
  100.  
  101. *CONTROL GADGETS*
  102. =================
  103.  
  104. The control gadgets are: "First Fit", "Best Fit", "Manual", "New", "Custom",
  105. "Next", "Previous";
  106.  
  107. -"First Fit" Gadget: with this option there will be the first available
  108. optimization, this means that the first useful possibility - so as the sum
  109. of the songs is not lesser than the length of side A minus 10 secs, nor
  110. greater than the same length plus 30 secs - will be shown. This means that
  111. if I have a 60 mins length tape, the first useful time in a range of 29:50 -
  112. 30:30 mins will be displayed. You don't have to worry about this overflow of
  113. time, as a normal tape contains a minute more per each side. This technique
  114. is particularly studied for those system with auto-reverse.
  115.  
  116. -"Best Fit" Gadget: with this gadget there will be the computation that more
  117. gets near to the maximum length of a tape. Of course this method is slower,
  118. but better. As, for a high number of songs (see the "mathematics" chapter)
  119. this calculus may be extremely long (especially for a 68000), I've put a
  120. percentage bar, and the possibility of interrupting the calculus in every
  121. moment. In case you choose one the former gadgets, and the "C" gadget isn't
  122. activated, it is also possible to know the minimum length of the necessary
  123. tape. You just need to null (clear) the tape-length gadget and press either
  124. "Best Fit" or "First Fit". The cursor will activate the tape-length gadget,
  125. writing in it the minum time required. In Italy there are 46, 50, 54, 60,
  126. 64, 70, 74, 80, 84, 90, 94, 100 mins length tapes, and it's on these times
  127. that the routine is based. This routine is useful in case you attach songs
  128. and in case there are CD whose length is very close to that one of a tape
  129. (for instance, 61 mins CD).
  130.  
  131. -"Manual" gadget: this gadget shows the first thirty available optimizations
  132. by using the "First Fit" option. Studied for the most exigents, it's useful
  133. in case the "Best Fit" is too slow; this way one can choose the most
  134. agreable songs combination.
  135.  
  136. -"New" gadget: with this gadget everything is taken to default a part from
  137. the lentgh tape. I suggest you to wait for the cursor to appear in the first
  138. string gadget before going on.
  139.  
  140. -"Custom" gadget: you may use it to skip the optimization in order to
  141. manually insert the data to print out on your tape cover. Useful in case you
  142. duplicate from tape to tape, or if the CD thoroughlly fits into just one
  143. side of a tape (as the optimization, even if possible, is unuseful).
  144.  
  145. -"Next" gadget: to go from songs #1-#21 to songs #22-#42.
  146.  
  147. -"Previous" gadget: to go from #22-#42 to #1-#21.
  148.  
  149. ============================================================================
  150.  
  151. *SECOND PART - SHOWING AND PRINTING DATA*
  152. -----------------------------------------
  153.  
  154. *STRING GADGETS*
  155. ================
  156.  
  157. They exactly work as before. On the left there is the number of the song.
  158. You can change the songs names, or even add some other names. Anyway, no
  159. option lets you change the number of the song written on the left. If you
  160. also write the time length, the program calculates if really that songs fits
  161. (useful in case the side B isn't full and you may want to record another
  162. song). In case you simply press return on it, a "--:--" will be displayed,
  163. and the number of the fittable songs will be virtually unlimited. Useful in
  164. case you don't know the length of the song.
  165.  
  166. *CONTROL GADGETS*
  167. =================
  168.  
  169. They are as follows: "Forth", "Back", "New", "Print", "Next", "Previous".
  170.  
  171. -"Forth" gadget: in order to see the next tape, or optimization, in case you
  172. have pressed either "M" or "Manual".
  173.  
  174. -"Back" gadget: same as "Forth", but it's the contrary.
  175.  
  176. -"New" gadget: it erases all the songs you have written. The same thing
  177. doesn't happen if you close the window with the "close" gadget. This latter
  178. operation may come useful in case you want to change the name of the album
  179. or of the tape length. Pressing, at this point, "Custom", data will still be
  180. there.
  181.  
  182. -"Print" gadget: this gadget prints out the cover with the data you wrote.
  183. In case one cover cannot fit all the songs (i.e. there are more than 16
  184. songs per side) another one will be printed. The routine checks for the
  185. printer status before printing, so it warns you about off-line problems, or
  186. out-of-paper troubles and so on.
  187.  
  188. -"Next" gadget: to go to the next page.
  189.  
  190. -"Previous" gadget: to go to the previous page.
  191.  
  192. ============================================================================
  193.  
  194. *SOME MATHEMATICS CONSIDERATIONS*
  195. =================================
  196.  
  197. These considerations just want to make the math-geek user how technically it
  198. is possible to know how to calculate all the possible combinations, and the
  199. mean user how much the use of the "Best Fit" gadget may result long and
  200. dangerous in some critical situations. Let's see the example of a 4 song
  201. edit: here there are all the possibilities:
  202.  
  203. (let's call the songs with 1,2,3,4 and the symbols /,|,\ the links between
  204. the songs themselves)
  205.  
  206.        1     2     3   4       (i.e.:
  207.       /|\    / \    /
  208.      2 3 4     3   4   4       1; 1,2 ; 1,2,3; 1,2,3,4; 1,2,4;
  209.     / \|      /                  1,3 ; 1,3,4
  210.    3   4     4                  1,4           (=8)
  211.   /
  212.  4                   2; 2,3 ; 2,3,4;
  213.                       2,4           (=4)
  214.  
  215.                    3; 3,4;           (=2)
  216.  
  217.                    4               (=1)
  218.                               -------
  219.                                (=15)
  220.  
  221.  
  222. As you can see, every single group is given by the combination of the number
  223. of songs (4) respect to the number of available groupings (from 1 to 4),
  224. i.e., called with n the songs number, and with k the possible groupings:
  225.  
  226.       n              n
  227.    ______           _____
  228.    \          n           \         n!
  229.     \            =    \      ________    = 2^n-1
  230.     /          k        /
  231.    /_____           /____      k!(n-k)!
  232.  
  233.      k=1         k=1
  234.  
  235. In the above example it's 2^4-1=(16)-1=15.
  236. So you see that the time doesn't grow linearly to the growing of the number
  237. of songs, but exponentially, and moreover this exponent depends on the
  238. number of the songs. So if for 10 songs (the mean deal in a normal CD) there
  239. are 1023 possibilities, for 20 songs there are 1.048.575 of them, and if we
  240. want to insert all the 42 songs we get 4.39 exp(12); let's say that for 10
  241. songs the "Best Fit" needs .5 secs; for 20 songs, it will take 8 mins!
  242. Obviously this is a theroic calculus as not all the possibilities are taken
  243. in consideration, as, for instance, if I have 20 songs but the sum of the
  244. first 5 already overflows the maximum time, it's out of doubt that the sums
  245. (1+2+3+4+5+6, ... ,1+2+3+4+...+19+20) will not be considered, as they will
  246. surely give a negative result. This technique, in the above example, lets you
  247. save 2^(20-5)-1 possible combinations (about 16 secs, possibly to add to
  248. some other similar cases). Moreover, by using the "+" gadget, and
  249. vincolating thus some songs, it's possible to speed up the execution times.
  250. Generally, the "Best Fit" should be used for a number of songs lesser than
  251. 14 (that is, about 8 secs).
  252.  
  253. *NOTES - HOW TO GET THE COMPLETE VERSION OF THE PROGRAM*
  254. ========================================================
  255.  
  256. The current version in the BBS is a demo, so that this means that some
  257. functions (the "+" gadget, the "M", "C", the "Best Fit" and the "Print"
  258. ones) aren't available. In order to use at 100% my program, which costed me
  259. a lot of fatigue, please send $15 or 20,000 Italian Liras to:
  260.  
  261. MARCEGLIA LUCA
  262. VIA LA VIGNETTA 40
  263. 32100 BELLUNO
  264. ITALY
  265.  
  266.